import ajax from "@/utils/request";
import '@/mock/postMock'

export function addPostFn(data) {
    return ajax({
        url: '/post/add',
        method: 'post',
        data
    })
}

export function addCommentFn(data) {
    return ajax({
        url: '/post/addComment',
        method: 'post',
        data
    })
}

export function likeFn(data) {
    return ajax({
        url: '/post/like',
        method: 'post',
        data
    })
}

export function doCollectFn(data) {
    return ajax({
        url: '/post/collect',
        method: 'post',
        data
    })
}